<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>日期</title>
	<script type="text/javascript">
	var dateobj=new Date("2016-10-1 0:0:0");
	 var guoqing=dateobj.getTime()/1000;
	 var nowobj=new Date();
	 var now=nowobj.getTime()/1000;
	 var nowda=(guoqing-now);
	 alert(nowda/(86400));
	</script>
</head>
<body>
	
</body>
</html>